package kr.hkit.powerjava.chapter06.assign_if;

import java.util.Scanner;

public class Condition {

	public static void main(String[] args) {
		
		Scanner input =  new Scanner(System.in);
		
		One q1 = new One();
		System.out.print("1. 몇 개?: ");
		int num = input.nextInt();
		q1.setNum(num);
		System.out.println(q1);
		
		Two q2 = new Two();
		System.out.print("2. 대문자 입력: ");
		char al = input.next().charAt(0);
		q2.setAlph(al);
		System.out.println(q2);
		
		Three q3 = new Three();
		
		System.out.print("3. 자유이용권은 0, 입장권은 1: ");
		int type = input.nextInt();
		q3.setType(type);
		
		System.out.print("나이: ");
		int age = input.nextInt();
		q3.setAge(age);
		
		System.out.print("현재시각: ");
		int time = input.nextInt();
		q3.setTime(time);
		System.out.println(q3);
		
		Four q4 = new Four(165.0, 55, 22);
		System.out.println(q4);
		
		System.out.print("5. 정수를 입력하세요: ");
		int num1 = input.nextInt();
		System.out.print("정수를 입력하세요: ");
		int num2 = input.nextInt();
		System.out.print("정수를 입력하세요: ");
		int num3 = input.nextInt();
		
		Five q5 = new Five(num1, num2, num3);
		System.out.println(q5);
	}
}
